package com.yun.platform.monitor.controller;


import com.yun.platform.config.dto.RData;
import com.yun.platform.monitor.dto.ServerDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 *
 * @author Hanson
 */
@RestController
@RequestMapping("/iot/monitor/server")
public class ServerController {

    @GetMapping()
    public RData getInfo() throws Exception {
        ServerDto server = new ServerDto();
        server.copyTo();
        return RData.success(server);
    }
}
